
import 'SpUtils.dart';
import 'Utils.dart';
import 'constant/SpKey.dart';

class FunctionUtils {
  //首次进入时间存储
  static void saveFirstJoinTime() async {
    int year = await SpUtils.getYxsInt(SpKey.FIRST_ENTER_APP_YEAR, def: 0);
    if (year == 0) {
      SpUtils.setYxsInt(SpKey.FIRST_ENTER_APP_YEAR, Utils.getYear());
    }

    var month = await SpUtils.getYxsInt(SpKey.FIRST_ENTER_APP_MONTH, def: 0);
    if (month == 0) {
      SpUtils.setYxsInt(SpKey.FIRST_ENTER_APP_MONTH, Utils.getMonth());
    }
  }
}
